<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
    	body{
	    	padding-top:70px;
	    	padding-left:70px;
	    	background-image:url(img/ab.png);
    	}
    </style>
</head>
<body class="body">
	<%@ include file="top.jsp" %>
	<%@ include file="leftlabel.jsp" %>
		<div class="span9">
			<a href="addfile.action?filetype.id=${filetype.id }" class="btn btn-primary" style="float:right;margin-top:18px"><i class="icon-white  icon-share"></i>上传资料</a>
			<div class="clear"></div>
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<i class="icon-th"></i><a href="filetype.action">文件共享→</a><a href="filetype.action">${filetype.name}</a>
				</li>
				
			</ul>
			<div class="wall">
				<table class="table table-striped">
					<thead>
						<tr>
							<th width="30px"></th>
							<th width="60%">名称</th>
							<th width="20%">大小</th>
							<th>创建人</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
					<c:forEach items="${filesList}" var="files">
						<tr>
							<td width="10%">
								<img src="img/file.png"/>
							</td>
							<td width="20%"><a href="download.action?id=${files.id}">${files.name}</a></td>
							<td width="70%">${files.filesize/1024/1024}MB</td>
							
							<td>${files.user.username}</td>
							<td><a href="delfile.action?id=${files.id}&filetype.id=${filetype.id }"><i class="icon-trash"></i></a></td>
						</tr>
					</c:forEach>
					</tbody>
				</table>
				
				<a href="filetype.action">←返回</a>
			</div>
			
			
		</div>
	 
</body>
</html>